package com.leyou.order.config;

import com.github.wxpay.sdk.WXPayConfig;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.io.InputStream;

@Data
@ConfigurationProperties(prefix = "ly.pay")
public class PayProperties implements WXPayConfig {

    // 公众账号ID
    private String appID;
    // 商户号
    private String mchID;
    // 生成签名的密钥
    private String key;
    // 连接超时时间
    private int httpConnectTimeoutMs;
    // 读取超时时间
    private int httpReadTimeoutMs;
    // 下单通知回调地址
    private String notifyUrl;

    @Override
    public InputStream getCertStream() {
        return null;
    }
}